﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrganisationAdd.ascx.cs" Inherits="MockPrjTeam4.OrganisationAdd" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Namespace="MockPrjTeam4.Entity" TagPrefix="uc1" %>
<style type="text/css">
        .txt
        {
            height: 20px;
            width: 200px;    
        }
        .txtExtend
        {
            height: 90px;
            width: 200px;    
        }
        .cbl
        {
            border: 1px solid black; 
            height: 120px;
            width: 250px;   
            overflow: scroll;
            color: blue;
        }
        .btn
        {
            padding: 0 0 0 50px;    
        }
        .wrap
        {
            margin-top: 50px;
            }
        .valid
        {
            font-size: larger;
            font-weight: bold;
            color: red;
            }
</style>
<div class="valid">
    <asp:ValidationSummary HeaderText="You must enter " runat="Server" DisplayMode="SingleParagraph"
    ShowSummary="true" EnableClientScript="true"/>
</div>
<div runat="server" class="wrap">
        <asp:ScriptManager ID="ScriptManager1" runat="Server"></asp:ScriptManager>
        <asp:TabContainer ID="tcDep" runat="server" BorderColor="#999999" 
            Style="margin-left:50px;height: 550px; width: 870px" ActiveTabIndex="0" >
            <asp:TabPanel runat="Server" ID="tpDetails1">
                <HeaderTemplate>
                <span style="font-weight:bold">Details 1</span>
                </HeaderTemplate>
                <ContentTemplate>
                    <table border="0" width="100%" cellpadding="2px" cellspacing="2px">
                    	<tr>
                    		<td>Organisation Name<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtOrgName" runat="server" CssClass="txt"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOrgName"
                                ErrorMessage="Organisation Name " Display="None"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                            Preferred Organisation
                            <br />
                            <br />
                            Expression of Interest
                            <br />
                            </td>
                            <td>
                                <asp:CheckBox ID="chkPreOrg" runat="server" Height="15px" Width="15px"/>
                                <br />
                                <br />
                                <asp:CheckBox ID="chkExpInt" runat="server" Height="15px" Width="15px"
                                 OnCheckedChanged="chkExpInt_CheckedChanged" AutoPostBack="true"/>
                                <br />
                            </td>
                    	</tr>
                        <tr>
                    		<td>Organisation Short Description<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtOrgShortDes" runat="server" CssClass="txtExtend"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtOrgShortDes"
                                ErrorMessage="Department Short Description " Display="None"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                            Type of Business<span style="color:Red">*</span>
                            <br />
                            <br />
                            SIC Code
                            
                            </td>
                            <td>
                                <asp:TextBox ID="txtTypeOfBusiness" runat="server" BackColor="#CCCCCC"
                                ClientIDMode="Static"></asp:TextBox>
                                <asp:HiddenField ID="hdfTypeOfBusinessId" runat="server" ClientIDMode="Static"/>
                                <asp:LinkButton ID="lkbtnTypeOfBusiness" runat="server" ForeColor="Blue" Font-Underline="true"
                                    OnClientClick="popup('PopupTypeofBusiness.aspx', 470, 400);" 
                                    >Look up</asp:LinkButton>
                                <br />
                                <asp:RequiredFieldValidator runat="Server" ControlToValidate="txtTypeOfBusiness"
                                ErrorMessage="Type of Business " Display="None"></asp:RequiredFieldValidator>
                                <br />
                                <br />
                                <asp:TextBox ID="txtSICCode" runat="server" BackColor="#CCCCCC"
                                ClientIDMode="Static">13100</asp:TextBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>
                                Lead Contact
                                <br /><br />
                                Copy Address from
                            </td>
                            <td>
                                <asp:TextBox ID="txtContactName" runat="server" BackColor="#CCCCCC" ClientIDMode="Static"></asp:TextBox>
                                <asp:HiddenField ID="hdfContact" runat="server" ClientIDMode="Static"/>
                                <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="Blue" Font-Underline="true"
                                    OnClientClick="popup('PopupContact.aspx', 600, 400);">Look up</asp:LinkButton>
                                <br />
                                <asp:RadioButton ID="rdoOrganisation" runat="server" Text="Organisation"/>&nbsp&nbsp&nbsp&nbsp&nbsp
                                <asp:RadioButton ID="rdoParent" runat="server" Text="Parent"/>
                            </td>
                    		<td>Organisation Full Description</td>
                            <td>
                                <asp:TextBox ID="txtOrgFullDes" runat="server" CssClass="txtExtend"></asp:TextBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>Address Line 1<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtAddLine1" runat="server" ClientIDMode="Static"></asp:TextBox>
                                <asp:LinkButton runat="Server" Text="Look up" ForeColor="blue" Font-Underline="true"
                                OnClientClick="popup('PopupAddress.aspx', 730, 450);"></asp:LinkButton>
                                <br />
                                <asp:RequiredFieldValidator runat="Server" ControlToValidate="txtAddLine1"
                                Display="None" ErrorMessage="Address Line 1 "></asp:RequiredFieldValidator>
                            </td>
                            <td>Phone Number<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="txt"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtPhoneNumber"
                                ErrorMessage="Phone Number" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>Address Line 2</td>
                            <td>
                                <asp:TextBox ID="txtAddLine2" runat="server" CssClass="txt" ClientIDMode="Static"></asp:TextBox>
                            </td>
                            <td>Fax</td>
                            <td>
                                <asp:TextBox ID="txtFax" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Address Line 3</td>
                            <td>
                                <asp:TextBox ID="txtAddLine3" runat="server" CssClass="txt" ClientIDMode="Static"></asp:TextBox>
                            </td>
                            <td>Email</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Postcode<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtPostcode" runat="server" ClientIDMode="Static"></asp:TextBox>
                                <asp:LinkButton ID="lkbtnPostcode" runat="server" Font-Underline="true"
                                ForeColor="Blue" OnClientClick="popup('PopupTypeofBusiness.aspx', 470, 400);">Look up</asp:LinkButton>
                                <asp:RequiredFieldValidator runat="Server" ControlToValidate="txtPostcode"
                                Display="None" ErrorMessage="Postcode"></asp:RequiredFieldValidator>
                            </td>
                            <td>Web Address</td>
                            <td>
                                <asp:TextBox ID="txtWebAdd" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Town/Village/City</td>
                            <td>
                                <asp:TextBox ID="txtTown" runat="Server" ClientIDMode="Static"
                                CssClass="txt" ></asp:TextBox>
                            </td>
                            <td>Charity Number</td>
                            <td>
                                <asp:TextBox ID="txtCharityNumber" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>County</td>
                            <td>
                                <asp:TextBox id="txtCounty" runat="server" ClientIDMode="Static"
                                CssClass="txt" />
                            </td>
                            <td>Company Number</td>
                            <td>
                                <asp:TextBox ID="txtCompanyNumber" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Nation/Country</td>
                            <td>
                                <asp:TextBox ID="txtCountry" runat="Server" ClientIDMode="Static"
                                CssClass="txt" ></asp:TextBox>
                            </td>
                            <td>
                            <asp:CheckBox ID="chkIsActive" runat="Server" Text="Is Active"/>
                        </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel runat="Server" ID="tpDetails2">
                <HeaderTemplate>
                <span style="font-weight:bold">Details 2</span>
                </HeaderTemplate>
                <ContentTemplate>
                    <table border="0" cellspacing="1px" cellpadding="1px" width="100%">
                    	<tr>
                        <td>Organisation Specicallism</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblOrgSpecicallism" runat="Server"> 
                                    <asp:ListItem runat="Server">Blind/Partially Sighted</asp:ListItem>
                                    <asp:ListItem runat="Server">Deaf/Hard of Hearing</asp:ListItem>
                                    <asp:ListItem runat="Server">Dyslexia</asp:ListItem>
                                    <asp:ListItem runat="Server">Learning Disability</asp:ListItem>
                                    <asp:ListItem runat="Server">Mental Health</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                        <td>Service Personal Circumstances Capabilities</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblServicePersonalCircumstancesCapabilities" runat="Server">
                                    <asp:ListItem runat="Server">Carer Responsibilities</asp:ListItem>
                                    <asp:ListItem runat="Server">Lone Parent</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>Service Disabilities Capabilities</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblServiceDisabilitiesCapabilities" runat="Server">
                                    <asp:ListItem runat="Server">Chest, Breathing problems</asp:ListItem>
                                    <asp:ListItem runat="Server">Condition Restricting mobility/dex</asp:ListItem>
                                    <asp:ListItem runat="Server">Diabetes</asp:ListItem>
                                    <asp:ListItem runat="Server">Difficulty in hearing</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                        <td>Service Ethinicity Capabilities</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblServiceEthinicityCapabilities" runat="Server">
                                    <asp:ListItem runat="Server">White British</asp:ListItem>
                                    <asp:ListItem runat="Server">White Irish</asp:ListItem>
                                    <asp:ListItem runat="Server">Other White</asp:ListItem>
                                    <asp:ListItem runat="Server">White & Black Caribbean</asp:ListItem>
                                    <asp:ListItem runat="Server">White & Black African</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>Service Barriers Capabilities</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblServiceBarriersCapabilities" runat="Server">
                                    <asp:ListItem runat="Server">Lone Parent</asp:ListItem>
                                    <asp:ListItem runat="Server">ESOL</asp:ListItem>
                                    <asp:ListItem runat="Server">Refugee</asp:ListItem>
                                    <asp:ListItem runat="Server">Basic skills</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                        <td>Accreditation</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblAccreditation" runat="Server">
                                    <asp:ListItem runat="Server">Two ticks</asp:ListItem>
                                    <asp:ListItem runat="Server">Investors in People</asp:ListItem>
                                    <asp:ListItem runat="Server">ISO 9001</asp:ListItem>
                                    <asp:ListItem runat="Server">ISO 14001</asp:ListItem>
                                    <asp:ListItem runat="Server">ISO 27001</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>Service Benifits Capabilities</td>
                        <td>
                            <div class="cbl">
                                <asp:CheckBoxList ID="cblServiceBenifitsCapabilities" runat="Server">
                                    <asp:ListItem runat="Server">Disability Living Allowance</asp:ListItem>
                                    <asp:ListItem runat="Server">Employment and Support Allowance</asp:ListItem>
                                    <asp:ListItem runat="Server">Incapacity Benifit</asp:ListItem>
                                    <asp:ListItem runat="Server">Incoming Support</asp:ListItem>
                                </asp:CheckBoxList>
                            </div>
                        </td>
                    </tr>
                    </table>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="tpDetails3" runat="Server" Visible="false">
                <HeaderTemplate><span style="font-weight:bold">Details 3</span></HeaderTemplate>
                <ContentTemplate>
                    <table border="0" cellspacing="2px" cellpadding="4px" width="100%">
                    	<tr>
                            <td>EOI Programmes</td>
                    		<td>
                                <asp:ListBox runat="Server" ID="lstProgrammes" CssClass="cbl"
                                DataTextField="ProgrammeName">
                                </asp:ListBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>EOI Services</td>
                            <td>
                                <asp:ListBox runat="Server" ID="lstServices" CssClass="cbl"
                                DataTextField="ServiceName"/>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>
    <div class="btn">
            <asp:Label ID="lblMessage" runat="Server" ForeColor="red" Font-Bold="true"></asp:Label>
            <br /><br />
            <asp:Button ID="btnSave" runat="Server" Text="Save" OnClick="btnSave_Click"/>&nbsp
            <asp:Button ID="btnBack" runat="Server" Text="Back"
             OnClick="btnBack_Click" CausesValidation="false"/>
             <asp:HiddenField ID="hdfAddLine1" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfAddLine2" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfAddLine3" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfPostcode" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfAddressId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfTownId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCountyId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCountryId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfTown" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCounty" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCountry" runat="Server" ClientIDMode="Static"/>
    </div>
